home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Apple Remote Access API / ARA Security API 1.0 / Sample Protocol Module / SampleModule.make < prev    next >
Encoding:
Text File  |  1993-11-04  |  2.9 KB  |  75 lines  |  [TEXT/MPS ]

  1. #   File:       SampleModule.make
  2. #   Target:     SampleModule
  3. #   Sources:    SampleServerModule.c
  4. #                SampleClientModule.c
  5. #                SampleUserConfigModule.c
  6. #                SampleSecurity.r
  7. #
  8. #    This is the make file for the Sample Add-on Security module for Apple Remote
  9. #    Access (ARA).  It builds a module that allows a second password to be assigned to each user.
  10. #    To build it use the MPW Build command.  The resulting module will be named "SampleModule".
  11. #    You must place this module in the extensions folders of both the client and the server.
  12. #    The SecurityInterfaces and SecurityLibraries folders (on Captain Crunch developer disk) must
  13. #    be placed in the folder that contains this folder in order for this make file to work
  14. #    properly.
  15. #
  16. #    Copyright © 1993, Apple Computer, Inc.
  17. #    Author:  Farzad Sarabi
  18. #
  19. #   Created:    Wednesday, February 3, 1993 11:03:43 AM
  20.  
  21. SECURITYLIBRARIES = ::SecurityLibraries:    # where security related libraries are
  22. SECURITYINCLUDES = ::SecurityInterfaces:    # where security related headers are
  23. OBJ_DIR = :objects:                            # where our object files get placed
  24.  
  25. # NOTE:
  26. #    SecurityInterface.o must be the first file to be linked.
  27.  
  28. # objects for building the server-side authentication code resource
  29. SERVER_OBJS =    {SECURITYLIBRARIES}SecurityInterface.o ∂
  30.                 {OBJ_DIR}SampleServerModule.c.o ∂
  31.                 {Libraries}Runtime.o
  32.  
  33. # objects for building client-side authentication code resource
  34. CLIENT_OBJS =    {SECURITYLIBRARIES}SecurityInterface.o ∂
  35.                 {OBJ_DIR}SampleClientModule.c.o ∂
  36.                 {Libraries}Runtime.o
  37.  
  38. # objects for building server-side user configuration code resource
  39. CONFIG_OBJS =    {SECURITYLIBRARIES}SecurityInterface.o ∂
  40.                 {OBJ_DIR}SampleUserConfigModule.c.o ∂
  41.                 {Libraries}Runtime.o
  42.  
  43. # builds the modules resources
  44. SampleModule ƒƒ SampleModule.make SampleSecurity.r
  45.     Rez SampleSecurity.r -i {SECURITYINCLUDES} -append -o SampleModule
  46.  
  47. # first one for building the server-side authentication
  48. SampleModule ƒƒ SampleModule.make {SERVER_OBJS}
  49.     Link -t CLMP -c SMPL -rt SRPR=200 -m SECURITYINTERFACEENTRYPROC -sg SampleModule ∂
  50.         {SERVER_OBJS} ∂
  51.         -o SampleModule
  52.  
  53. # now build the client-side authentication code resource
  54. SampleModule ƒƒ SampleModule.make {CLIENT_OBJS}
  55.     Link -t CLMP -c SMPL -rt CLPR=200 -m SECURITYINTERFACEENTRYPROC -sg SampleModule ∂
  56.         {CLIENT_OBJS} ∂
  57.         -o SampleModule
  58.  
  59. # now build the server-side user configuration module
  60. SampleModule ƒƒ SampleModule.make {CONFIG_OBJS}
  61.     Link -t CLMP -c SMPL -rt UCNF=200 -m SECURITYINTERFACEENTRYPROC -sg SampleModule ∂
  62.         {CONFIG_OBJS} ∂
  63.         -o SampleModule
  64.  
  65. # compile the c files
  66. {OBJ_DIR}SampleServerModule.c.o ƒ SampleModule.make SampleServerModule.c
  67.      C -r -b SampleServerModule.c -i {SECURITYINCLUDES} -o {OBJ_DIR}
  68.  
  69. {OBJ_DIR}SampleClientModule.c.o ƒ SampleModule.make SampleClientModule.c
  70.      C -r -b SampleClientModule.c -i {SECURITYINCLUDES} -o {OBJ_DIR}
  71.  
  72. {OBJ_DIR}SampleUserConfigModule.c.o ƒ SampleModule.make SampleUserConfigModule.c
  73.      C -r -b SampleUserConfigModule.c -i {SECURITYINCLUDES} -o {OBJ_DIR}
  74.  
  75.